
import Request from "../utils/request"
import Fetch from "../utils/fetch"
// import Vue from "vue"
// let that = Vue.prototype


//轮播  
// export const banner =  ()=> that.$http.get("/banner")


export const banner =  ()=> Fetch.get("/banner")

//首页列表
export const cartlist = () => Fetch.get("/recommend/appIndex")


//分类-分页?page=1&limit=15
export const coursebasis = (data) => Fetch.get('/courseBasis', data)


//用户userinfo
export const Userinfo = () => Fetch.get('/userInfo')

//user信息
export const UserCenter = () => Fetch.get('/getUCenterInfo')

//分享
export const share = () => Fetch.post('/public/share')


//登录 /login
export const login = (data) => Request({
    url: `/api/login`,
    method: "POST",
    params: data
})

//发送验证码
export const SmsVerification = (data) => Fetch.post('/smsCode', data)
//验证码登录
export const VerificationLogin = (data) =>Fetch.post('/login', data)